package com.zyf.project.capchain.blockchain.model;

import lombok.Data;

import java.io.Serializable;

/**
 * @author Zhou Yifan
 */
@Data
public class Message implements Serializable {

    /**
     * 消息类型
     */
    private Integer type;

    /**
     * 消息内容
     */
    private String data;

    public Message() {
    }

    public Message(int type) {
        this.type = type;
    }

    public Message(int type, String data) {
        this.type = type;
        this.data = data;
    }
}
